<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>


<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><s:a cssClass="add" namespace="/Craft" action="add" target="navTab"><span>添加</span></s:a></li>
			<li><s:a cssClass="delete" namespace="/Craft" action="delete?cra.craId={craId}"  target="ajaxTodo" title="确定要删除吗?"><span>删除</span></s:a></li>
			<li><s:a cssClass="edit" namespace="/Craft" action="update?cra.craId={craId}" target="navTab"><span>修改</span></s:a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="20"></th>
				<th width="80" align="center">编号</th>
				<th width="80" align="center">工种</th>
				<th width="80" align="center">姓名</th>
				<th align="center">工程施工内容</th>
				<th width="150"align="center">工程施工照片</th>
				<th width="150" align="center">下载</th>
				<th width="80">操作</th>
			</tr>
		</thead>
		<tbody>
		    <s:iterator value="craList" var="cra">
			<tr target="craId" rel='<s:property value="#cra.craId"/>'>
				<td></td>
				<td><s:property value="#cra.craId"/></td>
				<td><s:property value="#cra.craClass"/></td>
				<td><s:property value="#cra.craName"/></td>
				<td><s:property value="#cra.craContent"/></td>
				<td>
				<img src="<s:url action='../download/execute.action?fileName=%{#cra.craImg}' />" valign="middle" height="50px"></img></td>
				<td>
				<s:a action="execute.action?fileName=%{#cra.craImg}" namespace="/download"><s:property value="#cra.craOvertime"/></s:a>
				</td>
				<td></td>
				
				
			</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示20条
			，共${totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="20" pageNumShown="10" currentPage="${pageNum }"></div>
	</div>
</div>
